package com.ruibang.glass.equipment.entity.device;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel
@TableName(value = "g_equipment_spare_parts_inventory")
/**
 * 备件台账
 */
public class SparePartsInventory extends BaseEntity implements Serializable {
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ExcelProperty(value = {"仓库名称"}, index = 1)
    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;
    @ApiModelProperty(value = "货架号")
    @ExcelProperty(value = {"货架号"}, index = 2)
    private String shelfNumber;
    @ApiModelProperty(value = "备件名称")
    @ExcelProperty(value = {"备件名称"}, index = 3)
    private String sparePartsName;
    @ApiModelProperty(value = "型号")
    @ExcelProperty(value = {"型号"}, index = 4)
    private String model;
    @ApiModelProperty(value = "单位")
    @ExcelProperty(value = {"单位"}, index = 5)
    private String unit;
    @ApiModelProperty(value = "库存数量")
    @ExcelProperty(value = {"库存数量"}, index = 6)
    private Integer stockQuantity;
    @ApiModelProperty(value = "库存下限")
    @ExcelProperty(value = {"库存下限"}, index = 7)
    private Integer reorderQuantity;

    @ApiModelProperty(value = "备件编号")
    @ExcelProperty(value = {"备件编号"}, index = 8)
    private String sparePartsNumber;

    @ApiModelProperty(value = "仓库名称Id")
    @ExcelIgnore
    private String warehouseId;
    @TableLogic
    private String isDelete;


}
